import LocalServer from "./LocalServer";
import TSMap from "../../math/TSMap";

export default class ServerFactory {

    private static serverMap:TSMap = new TSMap();

    static add(url:string,server:LocalServer){
        this.serverMap.put(url,server);
    }

    static get(url:string):LocalServer{
        return this.serverMap.get(url);
    }

    static delete(url:string){
        return this.serverMap.delete(url);
    }
}
